<?php
echo $this->Html->css("estilo.css");
echo $this->Html->script("http://maps.googleapis.com/maps/api/js?sensor=false");
echo $this->Html->script("jquery.min");
echo $this->Html->script("mapaDeProdutos");
echo $this->Html->script("jquery-ui.custom.min");
?>
<h1 class="h1-chanfro"><?php echo $laboratorio['Laboratorio']['nome'] ?></h1>

<table class="table table-striped table-bordered table-hover">
    <tr>
        <th><?= __('Sala') ?></th>
        <th><?= __('Prédio') ?></th>
        <th><?= __('Centro') ?></th>    
    </tr>
    <tr>
        <td>
            <p><?= $laboratorio['Laboratorio']['sala'] ?></p>
        </td>    
        <td>
            <p><?= $laboratorio['Laboratorio']['predio'] ?></p>
        </td>  
        <td>
            <p><?= $laboratorio['Laboratorio']['centro'] ?></p>
        </td>
    </tr>
</table>
<label class="control-label"><?php echo __('Posição exata do laboratório') ?></label>
<div id="mapa"></div>
<script>
    $(function() {
        addMarker("<?= $laboratorio['Laboratorio']['latitude'] ?>", "<?= $laboratorio['Laboratorio']['longitude'] ?>", "<?= $laboratorio['Laboratorio']['nome'] ?>");
    });
</script>

<?php
echo $this->Html->link('Voltar', array('controller' => 'laboratorios', 'action' => 'index'));
?>

